<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class ModifyBrands extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('brands', function(Blueprint $table){
            $table->string('name')->comment('品牌名称');
            $table->string('logo')->comment('品牌logo');
            $table->string('description')->comment('品牌描述');
            $table->tinyInteger('sort')->unsigned()->default(0)->comment('排序');
            $table->boolean('recommend')->comment('是否推荐');
            $table->boolean('display')->comment('是否显示');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
